use axum::routing::{get, post};
use axum::Router;
use utoipa::OpenApi;

use crate::bootstrap::AppState;
use crate::controller::common;

// #[derive(OpenApi)]
// #[openapi(
//     nest(
//         (path = "/file", api = EmployeeApi)
//     )
// )]
pub struct CommonApi {}

pub fn router(state: AppState) -> Router<AppState> {
    Router::new()
        .route("/file/*path", get(common::file_download))
        .with_state(state)
}
